/**
 * 
 */
package com.wsd.dao;

import java.util.List;

import com.wsd.bean.Products;

/**
 * @author TuZiJun
 *
 */
public interface ProductsDaoInterface {

	public void save(Products transientInstance);

	public void delete(Products persistentInstance);

	public Products findById(java.lang.Integer id);

	public List<Products> findAll();
	@SuppressWarnings("unchecked")
	public List getTotallines();
	public List<Products> findOnePage(int start, int pageSize);
	@SuppressWarnings("unchecked")
	public List getTotallines(String keyWord) ;
	public List<Products> searchProducts(int start, int pageSize, String keyWord);
	public List<Products> categoryProducts(int start, int pageSize, int cid);
	@SuppressWarnings("unchecked")
	public List getTotallines(int cid);
	public List<Products> rankByModel(short model, int num);
	public void update(Products products);

	/**
	 * @param preProduct
	 */
	public void deletePrice(Products preProduct);

}
